package com.youxin.cpcenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.youxin.busfoundation.bean.orderinfo.ResponseOrderinfoBean;
import com.youxin.cpcenter.bean.ConsumQueryListBean;
import com.youxin.cpcenter.model.TbOrderInfo;
@Mapper
public interface TbOrderInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TbOrderInfo record);

    int insertSelective(TbOrderInfo record);

    TbOrderInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbOrderInfo record);

    int updateByPrimaryKey(TbOrderInfo record);

	List<ResponseOrderinfoBean> selectPayConsumingList(ConsumQueryListBean bean);
	
	List<ResponseOrderinfoBean> selectCouponConsumingList(ConsumQueryListBean bean);

	TbOrderInfo selectByPrimaryOrderSn(String orderSn);
	
	List<TbOrderInfo> selectFailurePayOrderList(TbOrderInfo bean);
	
	int updatePayStatusByOrderSn(TbOrderInfo record);
}